\doxysubsubsection{HSEM Exported Macros }
\hypertarget{group___h_s_e_m___exported___macros}{}\label{group___h_s_e_m___exported___macros}\index{HSEM Exported Macros@{HSEM Exported Macros}}
\doxysubsubsubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group___h_s_e_m___exported___macros_gabadef2e6fddb0bb11e9e9c6930b12ffa}{\+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+SEMID\+\_\+\+TO\+\_\+\+MASK}}(\+\_\+\+\_\+\+SEMID\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Sem\+ID to mask helper Macro. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___h_s_e_m___exported___macros_gaa21d53e6c4d6d35e9047b5c74fb78c8f}{\+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+ENABLE\+\_\+\+IT}}(\+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Enables the specified HSEM interrupts. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___h_s_e_m___exported___macros_ga36496851508be9cace265482a7d18e53}{\+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+DISABLE\+\_\+\+IT}}(\+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Disables the specified HSEM interrupts. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___h_s_e_m___exported___macros_gacba979398283173d1ee412b5edbdd108}{\+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+GET\+\_\+\+IT}}(\+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Checks whether interrupt has occurred or not for semaphores specified by a mask. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___h_s_e_m___exported___macros_gadb48c4b1d695a3dc4f3b72fdfc11d807}{\+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+GET\+\_\+\+FLAG}}(\+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Get the semaphores release status flags. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___h_s_e_m___exported___macros_ga0b123be50de8a360f3eb103b56cf3c39}{\+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+CLEAR\+\_\+\+FLAG}}(\+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Clears the HSEM Interrupt flags. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsubsection{Detailed Description}


\label{doc-define-members}
\Hypertarget{group___h_s_e_m___exported___macros_doc-define-members}
\doxysubsubsubsection{Macro Definition Documentation}
\Hypertarget{group___h_s_e_m___exported___macros_ga0b123be50de8a360f3eb103b56cf3c39}\index{HSEM Exported Macros@{HSEM Exported Macros}!\_\_HAL\_HSEM\_CLEAR\_FLAG@{\_\_HAL\_HSEM\_CLEAR\_FLAG}}
\index{\_\_HAL\_HSEM\_CLEAR\_FLAG@{\_\_HAL\_HSEM\_CLEAR\_FLAG}!HSEM Exported Macros@{HSEM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_HSEM\_CLEAR\_FLAG}{\_\_HAL\_HSEM\_CLEAR\_FLAG}}
{\footnotesize\ttfamily \label{group___h_s_e_m___exported___macros_ga0b123be50de8a360f3eb103b56cf3c39} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+CLEAR\+\_\+\+FLAG(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{(HSEM-\/>C1ICR\ |=\ (\_\_SEM\_MASK\_\_))}

\end{DoxyCode}


Clears the HSEM Interrupt flags. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+} & semaphores Mask \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None.} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___h_s_e_m___exported___macros_ga36496851508be9cace265482a7d18e53}\index{HSEM Exported Macros@{HSEM Exported Macros}!\_\_HAL\_HSEM\_DISABLE\_IT@{\_\_HAL\_HSEM\_DISABLE\_IT}}
\index{\_\_HAL\_HSEM\_DISABLE\_IT@{\_\_HAL\_HSEM\_DISABLE\_IT}!HSEM Exported Macros@{HSEM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_HSEM\_DISABLE\_IT}{\_\_HAL\_HSEM\_DISABLE\_IT}}
{\footnotesize\ttfamily \label{group___h_s_e_m___exported___macros_ga36496851508be9cace265482a7d18e53} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+DISABLE\+\_\+\+IT(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{(HSEM-\/>C1IER\ \&=\ \string~(\_\_SEM\_MASK\_\_))}

\end{DoxyCode}


Disables the specified HSEM interrupts. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+} & semaphores Mask \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None.} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___h_s_e_m___exported___macros_gaa21d53e6c4d6d35e9047b5c74fb78c8f}\index{HSEM Exported Macros@{HSEM Exported Macros}!\_\_HAL\_HSEM\_ENABLE\_IT@{\_\_HAL\_HSEM\_ENABLE\_IT}}
\index{\_\_HAL\_HSEM\_ENABLE\_IT@{\_\_HAL\_HSEM\_ENABLE\_IT}!HSEM Exported Macros@{HSEM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_HSEM\_ENABLE\_IT}{\_\_HAL\_HSEM\_ENABLE\_IT}}
{\footnotesize\ttfamily \label{group___h_s_e_m___exported___macros_gaa21d53e6c4d6d35e9047b5c74fb78c8f} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+ENABLE\+\_\+\+IT(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{(HSEM-\/>C1IER\ |=\ (\_\_SEM\_MASK\_\_))}

\end{DoxyCode}


Enables the specified HSEM interrupts. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+} & semaphores Mask \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None.} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___h_s_e_m___exported___macros_gadb48c4b1d695a3dc4f3b72fdfc11d807}\index{HSEM Exported Macros@{HSEM Exported Macros}!\_\_HAL\_HSEM\_GET\_FLAG@{\_\_HAL\_HSEM\_GET\_FLAG}}
\index{\_\_HAL\_HSEM\_GET\_FLAG@{\_\_HAL\_HSEM\_GET\_FLAG}!HSEM Exported Macros@{HSEM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_HSEM\_GET\_FLAG}{\_\_HAL\_HSEM\_GET\_FLAG}}
{\footnotesize\ttfamily \label{group___h_s_e_m___exported___macros_gadb48c4b1d695a3dc4f3b72fdfc11d807} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+GET\+\_\+\+FLAG(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_SEM\_MASK\_\_)\ \&\ HSEM-\/>C1ISR)}

\end{DoxyCode}


Get the semaphores release status flags. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+} & semaphores Mask \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em semaphores} & Mask \+: Semaphores where Release flags rise. \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___h_s_e_m___exported___macros_gacba979398283173d1ee412b5edbdd108}\index{HSEM Exported Macros@{HSEM Exported Macros}!\_\_HAL\_HSEM\_GET\_IT@{\_\_HAL\_HSEM\_GET\_IT}}
\index{\_\_HAL\_HSEM\_GET\_IT@{\_\_HAL\_HSEM\_GET\_IT}!HSEM Exported Macros@{HSEM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_HSEM\_GET\_IT}{\_\_HAL\_HSEM\_GET\_IT}}
{\footnotesize\ttfamily \label{group___h_s_e_m___exported___macros_gacba979398283173d1ee412b5edbdd108} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+GET\+\_\+\+IT(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_SEM\_MASK\_\_)\ \&\ HSEM-\/>C1MISR)}

\end{DoxyCode}


Checks whether interrupt has occurred or not for semaphores specified by a mask. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+SEM\+\_\+\+MASK\+\_\+\+\_\+} & semaphores Mask \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em semaphores} & Mask \+: Semaphores where an interrupt occurred. \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___h_s_e_m___exported___macros_gabadef2e6fddb0bb11e9e9c6930b12ffa}\index{HSEM Exported Macros@{HSEM Exported Macros}!\_\_HAL\_HSEM\_SEMID\_TO\_MASK@{\_\_HAL\_HSEM\_SEMID\_TO\_MASK}}
\index{\_\_HAL\_HSEM\_SEMID\_TO\_MASK@{\_\_HAL\_HSEM\_SEMID\_TO\_MASK}!HSEM Exported Macros@{HSEM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_HSEM\_SEMID\_TO\_MASK}{\_\_HAL\_HSEM\_SEMID\_TO\_MASK}}
{\footnotesize\ttfamily \label{group___h_s_e_m___exported___macros_gabadef2e6fddb0bb11e9e9c6930b12ffa} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+HSEM\+\_\+\+SEMID\+\_\+\+TO\+\_\+\+MASK(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+SEMID\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{(1\ <<\ (\_\_SEMID\_\_))}

\end{DoxyCode}


Sem\+ID to mask helper Macro. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+SEMID\+\_\+\+\_\+} & semaphore ID from 0 to 31 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em Semaphore} & Mask. \\
\hline
\end{DoxyRetVals}
